import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // 全屏
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/home/index')
  },
  {
    path: '/rkMap',
    name: 'rkMap',
    component: () => import('@/views/rkMap/index')

  },
  {
    path: '/clMap',
    name: 'clMap',
    component: () => import('@/views/clMap/index')

  },
  {
    path: '/fwMap',
    name: 'fwMap',
    component: () => import('@/views/fwMap/index')

  }, {
    path: '/wyMap',
    name: 'wyMap',
    component: () => import('@/views/wyMap/index')

  },

  //半屏
  {
    path: '/Home1',
    name: 'Home1',
    component: () => import('@/views/home/index-b')

  },
  {
    path: '/rkMap1',
    name: 'rkMap1',
    component: () => import('@/views/rkMap/index-b')

  },
  {
    path: '/clMap1',
    name: 'clMap1',
    component: () => import('@/views/clMap/index-b')

  },
  {
    path: '/fwMap1',
    name: 'fwMap1',
    component: () => import('@/views/fwMap/index-b')

  }, {
    path: '/wyMap1',
    name: 'wyMap1',
    component: () => import('@/views/wyMap/index-b')

  },
]

const router = new VueRouter({
  routes
})

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

export default router
